<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>任务记录</h1>
            <p>管理您的日常任务和待办事项</p>
        </header>

        <div class="task-form">
            <h2>添加新任务</h2>
            <form id="addTaskForm">
                <div class="form-group">
                    <input type="text" id="taskTitle" placeholder="任务标题" required>
                </div>
                <div class="form-group">
                    <textarea id="taskDescription" placeholder="任务描述"></textarea>
                </div>
                <div class="form-group">
                    <label for="taskPriority">优先级：</label>
                    <select id="taskPriority">
                        <option value="low">低</option>
                        <option value="medium" selected>中</option>
                        <option value="high">高</option>
                    </select>
                </div>
                <button type="submit">添加任务</button>
            </form>
        </div>

        <div class="task-filters">
            <button class="filter-btn active" data-filter="all">全部</button>
            <button class="filter-btn" data-filter="active">待完成</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>

        <div class="task-list" id="taskList">
            <!-- 任务将通过JavaScript动态添加 -->
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>